package cn.wolfcode.jenkinsspringboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨兴健
 * @Date 2020/10/12 22:33
 */
@RestController
public class HelloController {

    @GetMapping("hello")
    public String hello(String name) {
        return name;
    }

    @GetMapping("test")
    public String test(String name) {
        return "你输入的名字为"+name;
    }
}
